package com.example.demo.repo;

import com.example.demo.entity.User;
import com.mysql.cj.x.protobuf.MysqlxCrud;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * Created by sunears on 2018/12/28.
 */
public interface UserRepo extends CrudRepository<User,Long>{
    List<User> findAll();
    User findById(long id);

    User findByName(String name);
}
